import request from '@/utils/request'


// 首页信息
export function getHomePage() {
    return request.get({ url: '/api/page/home' })
}

export function getContact() {
    return request.get({ url: '/api/page/contact' })
}

export function getCovid19() {
  return request.get({ url: '/api/page/covid19' })
}

export function getMca_1() {
    return request.get({ url: '/api/page/mca_1' })
}

export function getMca_2() {
  return request.get({ url: '/api/page/mca_2' })
}

export function getGoodsCategory() {
    return request.get({ url: '/api/category/list' })
}

export function getGoodsList(params: any) {
    return request.get({ url: '/api/category/list', params })
}
// 搜索可选项
export function getSearchOptions() {
    return request.get({ url: '/api/browser/categoryList' })
}

export function getSearchResult() {
  return request.post({ url: '/api/search/do' })
}

// 散点图1
export function getScatterData(params:any) {
  return request.post({ url: '/api/browser/getScatterData',params })
}
//表格
export function getTableData(params:any) {
  return request.post({ url: '/api/browser/getTableData',params, })
}
//getMetaData
export function getMetaData(params:any) {
  return request.post({ url: '/api/browser/getMetaData',params, })
}
export function getDistributionData(params:any) {
  return request.post({ url: '/api/browser/getDistributionData',params, })
}
export function getHeatmapData(params:any) {
  return request.post({ url: '/api/browser/getHeatmapData',params, })
}

export function getSignificanceTableData(params:any) {
  return request.post({ url: '/api/browser/getSignificanceTableData',params })
}

export function getSubList(params:any) {
  return request.post({ url: '/api/browser/getSubList',params })
}

export function getNameAndStageList(params:any) {
  return request.post({ url: '/api/browser/getNameAndStageList',params })
}

